<script setup>
import { useRoute, onBeforeRouteUpdate, onBeforeRouteLeave } from "vue-router"
import { onBeforeUpdate } from 'vue'
const route = useRoute()

onBeforeRouteUpdate(() => {
  console.log("onBeforeRouteUpdate.....")
})

onBeforeUpdate(() => {
  console.log("onBeforeUpdate。。。。。")
})

onBeforeRouteLeave(() => {
  console.log("路由卸载了~~~~")
})
</script>

<template>
  <h1>关于我 -- {{ route.params.arg }}</h1>
</template>

<style scoped></style>
